import numpy as np
#n = Graph.n# the number of nodes
n = int(input("enter the number of vertexes: "))
adj = np.zeros((n,n), int)

for i in range(n):
    for j in range(i+1, n):
        adj[i][j] = adj[j][i] = np.random.randint(0,100)

print(adj)
#np.savetxt("adjMatrix.txt", adj,delimiter = "&",newline = "\\\\ \n",fmt = "%d",encoding = "utf-8")
np.savetxt("adjMatrix.txt",adj, fmt = "%d")
